package cn.xy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Test2Controller {

    @RequestMapping("t2/t1")
    public String test(Model model){
        model.addAttribute("msg","Test2Controller");
        return "test";
    }

    @RequestMapping("t2/t2")
    public String test2(Model model){
        model.addAttribute("msg","Test2Controller");
        return "redirect:index.jsp";
    }

}
